import {Form,Input,Button} from 'antd';
import React from 'react';


// 提交表单
const onsubmit = async() => {
    console.log('-----------------')
};

function DeparmentAdd(){
    const labelCol = {span:2}
    const wrapperCol = {span:20}
    return(
        <Form onFinish={onsubmit} labelCol={labelCol} wrapperCol={wrapperCol}>
            <Form.Item label='部门名称' name="name">
                <Input/>
            </Form.Item>
            <Form.Item label='人员数量' name="name">
                <Input/>
            </Form.Item>
            <Form.Item label='禁启用' name="name">
                <Input/>
            </Form.Item>
            <Form.Item label='描述' name="name">
                <Input.TextArea/>
            </Form.Item>
            <Form.Item>
                <Button type='primary' htmlType='submit'>确定</Button>
            </Form.Item>
        </Form>
    )
}
export default DeparmentAdd;